import iconEdit from '@/assets/ai/tab/edit.svg';
import iconEditActive from '@/assets/ai/tab/edit_active.svg';
import iconEditHover from '@/assets/ai/tab/edit_hover.svg';
import iconHd from '@/assets/ai/tab/hd.svg';
import iconHdActive from '@/assets/ai/tab/hd_active.svg';
import iconHdHover from '@/assets/ai/tab/hd_hover.svg';
import iconTxt from '@/assets/ai/tab/txt.svg';
import iconTxtActive from '@/assets/ai/tab/txt_active.svg';
import iconTxtHover from '@/assets/ai/tab/txt_hover.svg';
import iconImg from '@/assets/ai/tab/img.svg';
import iconImgActive from '@/assets/ai/tab/img_active.svg';
import iconImgHover from '@/assets/ai/tab/img_hover.svg';
import iconHistory from '@/assets/ai/tab/history.svg';
import iconHistoryActive from '@/assets/ai/tab/history_active.svg';
import iconHistoryHover from '@/assets/ai/tab/history_hover.svg';

const iconMap: Record<string, string> = {
  edit: iconEdit,
  edit_active: iconEditActive,
  edit_hover: iconEditHover,
  hd: iconHd,
  hd_active: iconHdActive,
  hd_hover: iconHdHover,
  txt: iconTxt,
  txt_active: iconTxtActive,
  txt_hover: iconTxtHover,
  img: iconImg,
  img_active: iconImgActive,
  img_hover: iconImgHover,
  history: iconHistory,
  history_active: iconHistoryActive,
  history_hover: iconHistoryHover,
};

export const loadIcon = (name: string) => iconMap[name] || '';
